package bg.uni_sofia.conf_manager.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@NamedQueries({
	@NamedQuery(name = "getAdminByName", 
			query = "SELECT a FROM Admin a WHERE a.username = :username")
			})
@XmlRootElement
public class Admin {

	
	@Id @GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	private String username;
	private String password;
	public Admin(String username, String password) {
		super();
		this.username = username;
		this.password = password;
	}
	public Admin() {
		super();
	}
	
	
	public int getId() {
		return id;
	}

	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	
	
	
	
	
}
